//
//  ViewController.m
//  studentInfo
//
//  Created by wanghui on 13-12-5.
//  Copyright (c) 2013年 student1. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)print:(id)sender {
    self.press.text=[NSString stringWithFormat:@"%@ \n %@",self.stuName.text,self.stuAge.text];
    self.stuName.text=@"";
    self.stuAge.text=@"";
    [self.stuAge resignFirstResponder];
    
    
}
@end
